package com.freen.fadmin.repository.sysuser;

import com.freen.fadmin.entity.sysuser.SysPermission;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysPermissionRepository extends JpaRepository<SysPermission,Integer> {
    SysPermission findById(int id);
    SysPermission findByName(String name);
    Page<SysPermission> findByNameLikeOrCnnameLike(String name,String cnname,Pageable pageable);
}
